<?php
require_once "../Common/database.php";
if($_POST[delete]=='checked')
{
$query="DELETE FROM tblinventory WHERE ID='$_POST[ID]'";
}
else
{
$query="UPDATE tblinventory SET Location='$_POST[location]' WHERE ID='$_POST[ID]'";
}
mysql_query($query);

echo '<h3><center>Updated Equpment '.$_POST[name];
echo '<p><a href="../index.php?p=loview">Back</a>';
?>